import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import {h} from 'vue';
import {Switch} from 'ant-design-vue';

export const columns: BasicColumn[] = [
        {
            title: '是否默认（1是，2否）',
            dataIndex: 'isDef',
            width: 200,
        },
        {
            title: '姓名',
            dataIndex: 'userName',
            width: 200,
        },
        {
            title: '国内手机号',
            dataIndex: 'userPhone',
            width: 200,
        },
        {
            title: '用户id',
            dataIndex: 'userId',
            width: 200,
        },
        {
            title: '邮箱',
            dataIndex: 'email',
            width: 200,
        },
        {
            title: '是否删除',
            dataIndex: 'deleted',
            width: 200,
        },
        {
            title: '更新人',
            dataIndex: 'updateUser',
            width: 200,
        },
        {
            title: '更新时间',
            dataIndex: 'updateTime',
            width: 200,
        },
        {
            title: '创建人',
            dataIndex: 'createUser',
            width: 200,
        },
        {
            title: '创建时间',
            dataIndex: 'createTime',
            width: 200,
        },
];

export const searchFormSchema: FormSchema[] = [
];

export const formSchema: FormSchema[] = [
        {
            label: '是否默认（1是，2否）',
            field: 'isDef',
            component: 'Input',
            required: true,
        },
        {
            label: '姓名',
            field: 'userName',
            component: 'Input',
            required: true,
        },
        {
            label: '国内手机号',
            field: 'userPhone',
            component: 'Input',
            required: true,
        },
        {
            label: '用户id',
            field: 'userId',
            component: 'Input',
            required: true,
        },
        {
            label: '邮箱',
            field: 'email',
            component: 'Input',
            required: true,
        },
        {
            label: '是否删除',
            field: 'deleted',
            component: 'Input',
            required: true,
        },
        {
            label: '更新人',
            field: 'updateUser',
            component: 'Input',
            required: true,
        },
        {
            label: '更新时间',
            field: 'updateTime',
            component: 'Input',
            required: true,
        },
        {
            label: '创建人',
            field: 'createUser',
            component: 'Input',
            required: true,
        },
        {
            label: '创建时间',
            field: 'createTime',
            component: 'Input',
            required: true,
        },
];
